import { getRequest, postRequest, putRequest, deleteRequest } from '@/utils/request';
/**
 * 故障项目*/
// 创建
export const spinFaultItemCreate = (data) => postRequest('/spin/fault/create', data);

// 更新
export const spinFaultItemUpdate = (data) => putRequest('/spin/fault/update', data);

// 删除
export const spinFaultItemDelete = (params) => deleteRequest('/spin/fault/delete', params);

// 获得
export const spinFaultItemGet = (params) => getRequest('/spin/fault/get', params);

// 分页
export const spinFaultItemPage = (params) => getRequest('/spin/fault/page', params);
export const spinFaultItemHistoryPage = (params) => getRequest('/spin/fault/history-page', params);

export const spinFaultItemUpdateAuditState = (data) => postRequest('/spin/fault/update-audit-state', data);

export const spinFaultItemCount = (params) => getRequest('/spin/fault/count', params);
export const spinFaultItemWeeksCount = (params) => getRequest('/spin/fault/weeks-count', params);
